package com.java502.shirodemo502.pojo;


import java.util.List;

public class Role {

  private Integer id;
  private String roleName;
  private String roleDesc;
  private Integer isSuper;

  /**
   * 角色拥有的权限
   */
  private List<Access> accessList;


  public Integer getId() {
    return id;
  }

  public List<Access> getAccessList() {
    return accessList;
  }

  public void setAccessList(List<Access> accessList) {
    this.accessList = accessList;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }


  public String getRoleDesc() {
    return roleDesc;
  }

  public void setRoleDesc(String roleDesc) {
    this.roleDesc = roleDesc;
  }


  public Integer getIsSuper() {
    return isSuper;
  }

  public void setIsSuper(Integer isSuper) {


    this.isSuper = isSuper;
  }


  @Override
  public String toString() {
    return "Role{" +
            "id=" + id +
            ", roleName='" + roleName + '\'' +
            ", roleDesc='" + roleDesc + '\'' +
            ", isSuper=" + isSuper +
            ", accessList=" + accessList +
            '}';
  }
}
